#include<stdio.h>
int main() {
	int k = 1000;
	while(k > 1) {
		printf("%d\n", k);
		k = k / 2;
	}
	return 0;
}